﻿using Wenyu.Framework.Common.EnumTypes;

namespace Wenyu.Framework.DbModels.Entities
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserEntity:BaseEntity
    {
        /// <summary>
        /// 用户唯一id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? Password { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        /// <summary>
        /// 用户类型-UserTypeEnum
        /// 1：管理员  系统默认生成
        /// 2：普通用户 添加的或者注册的用户都为普通用户
        /// </summary>
        public UserTypeEnum UserType { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 移动电话
        /// </summary>
        public string? Mobile { get; set; }

        /// <summary>
        /// 性别  0男 1女
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 微信
        /// </summary>
        public string? Wechat { get; set; }
        /// <summary>
        /// QQ
        /// </summary>
        public string? QQ { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string? ImageUrl { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
    }
}